public class Test {
    public static void main(String[] args) {
        Book book1 = new Book("西游记", "吴承恩", 10);
        Book book2 = new Book("三国演义", "罗贯中", 12);
        Book book3 = new Book("水浒传", "施耐庵", 15);
        Book book4 = new Book("红楼梦", "曹雪芹", 20);

        book1.printInfo();
        book2.printInfo();
        book3.printInfo();
        book4.printInfo();
    }
}Z